package com.esiag.pdsteam.referencement.bean;

import com.esiag.pdsteam.referencement.annotation.DataField;
import com.esiag.pdsteam.referencement.annotation.DataTable;
import com.esiag.pdsteam.referencement.annotation.TableIdentificateur;


@DataTable
public class Source {
	@TableIdentificateur
	@DataField(fieldName="idSource")
	private int id;
	
	@DataField(fieldName="libelleSource")
	private String libelle;
	
	@DataField
	private int idTypeSource;
	
	@DataField(fieldName="adr")
	private String adrMac;
	
	public Source(int id, String libelle, int idTypeSource,String adrMac) {
		super();
		this.id = id;
		this.libelle = libelle;
		this.idTypeSource = idTypeSource;
		this.adrMac=adrMac;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getLibelle() {
		return libelle;
	}

	public void setLibelle(String libelle) {
		this.libelle = libelle;
	}

	public int getIdTypeSource() {
		return idTypeSource;
	}

	

	
	public String toString() {
		return "Source [id=" + id + ", libelle=" + libelle + ", idTypeSource="
				+ idTypeSource + ", adrMac=" + adrMac + "]";
	}

	public void setIdTypeSource(int idTypeSource) {
		this.idTypeSource = idTypeSource;
	}

	public Source() {
		super();
		// TODO Auto-generated constructor stub
	}

	public String getAdrMac() {
		return adrMac;
	}

	public void setAdrMac(String adrMac) {
		this.adrMac = adrMac;
	}
	
	
	
}
